﻿using UnityEngine;
using System.Collections;

public class exit : MonoBehaviour
{

    // Use this for initialization
    public GameObject go;
    
    void Start()
    {
        go.SetActive(false);
    }

    // Update is called once per frame
    public void Show()
    {
        go.SetActive(true);
    }
    public void Hide()
    {
        go.SetActive(false);
    }
    public void ExitGame()
    {
        Application.Quit();
    }
    public void AwakeYellowPlayer() 
    {

        playerPrefer.guanggao = 1;
        PlayerPrefs.SetInt("guanggao",1);
    }
}